package sun.nan.test.junit;

import java.util.List;

/**
 * Created by linan on 2014/12/22.
 */
public class Target {
    private int id;
    private String name;

    private void print(Target target) {
        System.out.println("id = " + target.getId() + ", name = " + target.getName());
    }

    private void print(List<Target> targets) {
        for (Target target : targets)
            System.out.println("id = " + target.getId() + ", name = " + target.getName());
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
